package view.effect
{
	import data.Globals;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;

	/**
	 *
	 *@author CrazyChen 
	 *2013-4-13
	 */	
	public class MouseEffect extends Sprite
	{
		private var clip:MovieClip;
	    
		public function MouseEffect()
		{
			clip = new mouseClick();
			this.addChild(clip);
			clip.x = Globals.GRAD_WIDTH/2;
			clip.stop();
		}
		
		public function play():void{
			clip.gotoAndPlay(0);
		}
		
		public function hide():void{
		    if(this.parent){
				clip.stop();
				this.parent.removeChild(this);
			}
		}
		
	}
}